<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>分类</title>
    <link rel="stylesheet" type="text/css" th:href="@{/stage/css/semantic.min.css}">
    <link rel="stylesheet" th:href="@{/stage/css/index.css}">
    <link rel="stylesheet" th:href="@{/stage/css/iconfont.css}"/>
    <script type="text/javascript" th:src="@{/stage/js/jquery-1.10.2.js}"></script>
    <link rel="icon" type="image/x-icon" th:href="@{${webconfig.websiteicon}}" />
</head>
<body>

<!--导航-->
<footer th:replace="fontdesk/head::footer-fragment-head"></footer>
<!--中间-->

<div class="m-container m-padded-tb-big">
    <div class="ui container">
        <!--header-->
        <div class="ui top attached segment">
            <div class="ui middle aligned two column grid">
                <div class="column">
                    <h3 class="ui teal header">分类</h3>
                </div>
                <div class="right aligned column">
                    共 <h3 class="ui orange header m-inline-block m-text-thin" th:text="${tylis.size()}">14</h3>个
                </div>
            </div>
        </div>

        <div class="ui attached segment m-padded-tb-large">
            <div class="ui labeled button m-margin-tb-tiny" tabindex="0" th:each="tyls:${tylis}">
                <a th:href="@{'/blogtype/'+${tyls.articletypeid}}" th:if="${blogid==tyls.articletypeid}" class="ui basic teal button" th:text="${tyls.artypename}">思考与感悟</a>
                <th:block th:if="${blogid!=tyls.articletypeid}">
                    <a th:href="@{'/blogtype/'+${tyls.articletypeid}}" class="ui basic  button" th:text="${tyls.artypename}">思考与感悟</a>
                </th:block>

                <div th:if="${blogid==tyls.articletypeid}" class="ui basic teal left pointing label" th:text="${tyls.typecount}">24</div>
                <th:block th:if="${blogid!=tyls.articletypeid}">
                    <div th:text="${tyls.typecount}" class="ui basic  left pointing label">24</div>
                </th:block>
            </div>

        </div>


        <div class="ui top attached segment teal">
            <div class="ui padded vertical segment m-padded-tb-large" th:each="tybl:${typeblog.list}">
                <div class="ui middle aligned mobile reversed stackable grid">
                    <div class="eleven wide column">
                        <h3 class="ui header"><a th:href="@{'/blogarticle/'+${tybl.id}}" target="_blank" class="m-black" th:text="${tybl.articletitle}">2021年度总结</a></h3>
                        <p class="m-text" th:text="|${tybl.describel}......|">深圳打工人的一年......</p>
                        <div class="ui grid">
                            <div class="eleven wide column">
                                <div class="ui mini horizontal link list">
                                    <div class="item">
                                        <img th:src="@{${webconfig.websiteadimg}}" alt="" class="ui avatar image">
                                        <div class="content"><a href="#" th:text="${webconfig.websiteadname}" class="header">零三</a></div>
                                    </div>
                                    <div class="item">
                                        <i class="iconfont icon-rili"></i><span th:text="${#dates.format(tybl.createtime,'yyyy-MM-dd')}">2022-01-26</span>
                                    </div>
                                    <div class="item">
                                        <i class="iconfont icon-chakanmian"></i> <span th:text="${tybl.watchnumber}">69</span>
                                    </div>
                                </div>
                            </div>
                            <div class="right aligned five wide column">
                                <a href="#" target="_blank" class="ui teal basic label m-padded-tiny m-text-thin" th:text="${tybl.artype.artypename}">web前端</a>
                            </div>
                        </div>
                    </div>

                    <div class="five wide column">
                        <a th:href="@{'/blogarticle/'+${tybl.id}}" target="_blank">
                            <img th:src="@{${tybl.articleimg}}" alt="" class="ui rounded image">
                        </a>
                    </div>

                </div>
            </div>
        </div>

        <th:block th:if="${typeblog.pageNum>1 || typeblog.nextPage>0}">
            <div class="ui bottom attached segment">
                <div class="ui middle aligned two column grid">
                    <div class="column">
                        <th:block th:if="${typeblog.pageNum>1}">
                            <a href="#" th:href="@{'/blogtype/'+${blogid}+'?pagenum='+${typeblog.prePage}}" class="ui mini teal basic button">上一页</a>
                        </th:block>
                    </div>
                    <div class="right aligned column">
                        <th:block th:if="${typeblog.nextPage>0}">
                            <a href="#" th:href="@{'/blogtype/'+${blogid}+'?pagenum='+${typeblog.nextPage}}" class="ui mini teal basic button">下一页</a>
                        </th:block>
                    </div>
                </div>
            </div>
        </th:block>
    </div>



</div>



<!--底部-->
<!--底部-->
<footer  th:replace="fontdesk/foot::footer-fragment">

</footer>



<script>
    $(".m-mobile-show").click(function () {
        $(".m-item").toggleClass("m-mobile-hide");
    });

    $(function (){
        $("#alla a").eq(1).attr("class","active m-item item m-mobile-hide");
    })

</script>

</body>
</html>